#ifndef TFVIEWER_H
#define TFVIEWER_H

#include <QWidget>
#include "ui_tfviewer.h"
#include <string>

using std::string;

class TFViewer : public QWidget
{
	Q_OBJECT

protected:
	virtual void paintEvent(QPaintEvent *event);
public:
	TFViewer(QWidget *parent = 0);
	~TFViewer();

	void setTF(const string& filename);
	void setWeights(const int w[10]);
private:
	const static int HEIGHT = 50;

	string filename;
	int weights[10];
};

#endif // TFVIEWER_H
